/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gui.menu.stateDiagram;

import gui.menu.RibbonButton;
import gui.menu.classDiagram.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JMenuItem;

/**
 *
 * @author SG0217432
 */
public class AddStateItem extends RibbonButton implements ActionListener {

    private AddStateForm form;

    public AddStateItem() {
        super("icons/addState.png", "Add", "Add new state");
        addActionListener(this);
    }

    public void actionPerformed(ActionEvent e) {
        form = new AddStateForm();
    }

}
